package ink.yuanchu.picachoframework.service.biz;

import com.baomidou.mybatisplus.extension.service.IService;
import ink.yuanchu.picachoframework.entity.Role;
import ink.yuanchu.picachoframework.entity.bo.RoleAndPermissions;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author ziyuan
 * @Date: 2021/03/20/12:53
 * @Description:
 */
public interface RoleBiz extends IService<Role> {

    /**
     * 查询所有的角色和它的权限，以一个角色多个权限的关系封装到一起
     * @return
     */
    List<RoleAndPermissions> getRoleAndPermission();
}
